package com.dk.service.impl;

import com.dk.pojo.Appointment;
import com.dk.mapper.AppointmentMapper;
import com.dk.service.AppointmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 帅杰
 * @since 2021-08-13
 */
@Service
public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appointment> implements AppointmentService {

    @Autowired
    private AppointmentMapper appointmentMapper;

    @Override
    public Integer toInsert(Appointment appointment) {
        return appointmentMapper.insert(appointment);
    }
}
